
#引导身份服务
keystone-manage bootstrap --bootstrap-password 123456 \
  --bootstrap-admin-url http://openstack:5000/v3/ \
  --bootstrap-internal-url http://openstack:5000/v3/ \
  --bootstrap-public-url http://openstack:5000/v3/ \
  --bootstrap-region-id RegionOne

#管理账户
export OS_USERNAME=admin
export OS_PASSWORD=123456
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_AUTH_URL=http://openstack:5000/v3
export OS_IDENTITY_API_VERSION=3

export OS_TOKEN=24a55d00d3746cb0020a

openstack domain create --description "default_domain" default

openstack endpoint create --region RegionOne \
  image public http://openstack:9292

openstack endpoint create --region RegionOne \
  image internal http://openstack:9292  

openstack endpoint create --region RegionOne \
  placement public http://openstack:8778


#镜像
glance image-create --name "cirros" \
  --file cirros-0.3.4-x86_64-disk.img \
  --disk-format qcow2 --container-format bare \
  --visibility public